<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('index')}">{:lang('商品规格管理')}</a></li>
        <li><a href="{:url('specAttr',array('type_id'=>$attrData['type_id']))}">{$typeData.name} - 规格属性</a></li>
        <li class="active"><a href="#">{$attrData.attr_name} - 属性值</a></li>
        <li><a href="{:url('specValAdd',array('attr_id'=>$attrData['id']))}">新增 {$attrData.attr_name} 属性值</a></li>
    </ul>
    <style>
        tr th {
            text-align: center
        }
    </style>
    <table class="table table-hover table-bordered text-center">
        <thead>
        <tr>
            <th>ID</th>
            <th>{:lang('属性值')}</th>
            <th>{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="datas" item="data">
            <tr>
                <td>{$data.id}</td>
                <td>{$data.attr_value}</td>
                <td>
                    <a href="{:url('specValEdit',array('id'=>$data['id']))}" class="btn btn-info">编辑</a>
                    <a href="{:url('specValDel',array('id'=>$data['id']))}" class="  btn btn-danger"
                       data-msg="确定删除它吗？">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination"> {$datas->render()}</div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>